import 'dart:convert';
import 'dart:typed_data';

String bytes2base64(Uint8List bytes) {
  return base64Encode(bytes.cast());
}

Uint8List base2bytes(String s) {
  return base64Decode(s).sublist(0);
}